import request from '@/utils/request'

/**
 * 查询审核任务 列表数据
 * @param {*} data = {pageNo: 0, pageSize: 0, param: {status,storeId}}
 */
export function pageList(form, pageSize, currentPage) {
  const data = {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  }
  return request.post('/sq/audit/page', data)
}

/**
 * 审核
 * @param {*} data
 */
export function auditIsOk(data) {
  return request.post('/sq/audit/auditIsOk', data)
}

/**
 * 审核任务详情
 * @param {*} id
 */
export function auditDetail(id) {
  return request.get(`/sq/audit/${id}`)
}
